# -*- coding: utf-8 -*-
"""
Created on Mon Nov  8 12:03:29 2021

@author: DDD
"""


# 魏之期
# def weather():
#     print("*"*13)
#     print("日期：11月15日")
#     print("温度：10~20度")
#     print("空气状况:优")
#     print("*"*13)
#
#
#
# def modify_weather(today,temp,air_quality):
#     print("*"*13)
#     print(f"日期：{today}")
#     print(f"温度：{temp}")
#     print(f"空气状况:{air_quality}")
#     print("*"*13)
#
# weather()
# modify_weather('11月6日','10~20度','优')
# modify_weather('11y月17日','11-22','良')

# def division(num_one,num_two):
#     print(num_one / num_two)
#
# division(6,2)
#
# def info(name,age,address):
#      print(f'姓名:{name}')
#      print(f'年龄:{age}')
#      print(f'地址:{address}')
#
# info(age=23, name="李婷婷", address="山东")
#
# def connect(ip, port=3306):
#      print(f"连接地址为：{ip}")
#      print(f"连接端口号为：{port}")
#      print("连接成功")
#
# connect('127.0.0.1')

# def connect(ip, port=3306):
#      print(f"连接地址为：{ip}")
#      print(f"连接端口号为：{port}")
#      print("连接成功")
#
# connect(ip='127.0.0.1', port=8080)
#
# def test(*args):
#     print(args)
#
# test(1,2,3,'a','b','c',"e",11,22)

# def test(**kwargs):
#     print(kwargs)
#
# test(a = 1, b = 2, c = 3, d = 4)
# name = 'python'
# def use_var():
#    name = 'python'
#    print(name)
#
# use_var()
#
# print(name)
#
# count = 10
# def use_var():
#    print(count)
# use_var()
# print(count)
#
# count = 10
# def use_var():
#     global count
#     count += 10
#     print(count)
#
# use_var()

# area = lambda a, h:(a*h)*0.5
# print(area(3,4))


def factorial(num):
    if num == 1:
        return 1
    else:
        return num * factorial(num - 1)


print(factorial(5))

# print(abs(-5))
# print(abs(3.14))
# print(abs(8 + 3j))
#
# print(ord('a'))
# print(ord('A'))
#
# print(chr(97))
# print(chr(65))
#
